Ext.define('jwawa.erp.cfg.searchPage.SearchPageListShell', {
    extend: 'jwawa.erp.framework.ShellContainer',
    requires: ['jwawa.erp.cfg.searchPage.SearchPageDetailShell'],
    handlerClass: 'jwawa.erp.cfg.searchPage.SearchPageListHandler',
    items: [
        {
            xtype: 'tabpanel',
            activeTab: 0,
            border: false,
            plain: true,
            tabPosition: 'bottom',
            items: [
                {
                    itemId: 'searchPageQueryPanel',
                    xtype: 'panel',
                    border: false,
                    layout: {
                        type: 'border'
                    },
                    title: '查询',
                    items: [
                        {
                            xtype: 'searchPanel',
                            border: false,
                            animCollapse: false,
                            pageCode: 'jwawa.erp.cfg.searchPage.SearchPageListShell'
                        },
                        {
                            itemId: 'searchPageGridPanel',
                            xtype: 'gridpanel',
                            region: 'center',
                            border: false,
                            componentCls: 'boxLineTop',
                            selType: 'rowmodel',
                            multiSelect: true,
                            viewConfig: {
                                loadMask: false
                            },
                            columns: [
                                {
                                    xtype: 'rownumberer',
                                    width: 30,
                                    sortable: false
                                },
                                {
                                    dataIndex: 'page_name',
                                    entity: 'cfg_search_pages',
                                    width: 200,
                                    text: '页面名称'
                                },
                                {
                                    dataIndex: 'page_code',
                                    entity: 'cfg_search_pages',
                                    width: 500,
                                    text: '页面编码'
                                }
                            ],
                            dockedItems: [
                                {
                                    itemId: 'pagingtoolbar',
                                    xtype: 'pagingtoolbar',
                                    width: 360,
                                    displayInfo: true,
                                    dock: 'bottom'
                                },
                                {
                                    xtype: 'toolbar',
                                    dock: 'top',
                                    items: [
                                        {
                                            itemId: 'viewSearchPageButton',
                                            xtype: 'button',
                                            text: '编辑',
                                            icon: '/img/book_edit.png'
                                        },
                                        {
                                            itemId: 'newSearchPageButton',
                                            xtype: 'button',
                                            text: '新增',
                                            icon: '/img/book_add.png'
                                        },
                                        {
                                            itemId: 'delSearchPageButton',
                                            xtype: 'button',
                                            text: '删除',
                                            icon: '/img/book_delete.png',
                                            disabled: true
                                        },
                                        {
                                            xtype: 'tbspacer',
                                            flex: 1,
                                            autoScroll: false
                                        },
                                        {
                                            xtype: 'label',
                                            text: '查询列表',
                                            cls: 'toolbar-title'
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                },
                {
                    itemId: 'searchPageDetailEditPanel',
                    xtype: 'cfgSearchPageDetailPanel',
                    border: false,
                    title: '详情',
                    disabled: false
                }
            ]
        }
    ]
});